from django.db import models
from django.db.models.fields.related import OneToOneField
from django.contrib.auth.models import User

# Create your models here.

class Empresa(models.Model):
    nome = models.CharField(max_length=200)
    usuario = OneToOneField(User)
    
    def __unicode__(self):
        return self.nome